package org.example.maven.museumuser.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import org.example.maven.museumuser.domain.pojo.exhibition.ExhibitionList;
import org.example.maven.museumuser.domain.pojo.exhibition.ExhibitionTicket;
import org.example.maven.museumuser.domain.pojo.exhibition.UserTicketOrder;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

public interface ExhibitionService {
    //获取展览的list信息
    List<ExhibitionList> getAllExhibition();

    //根据id获取展览信息
    ExhibitionList getExhibitionById(Integer id);

    //根据时间获取展览
    List<Map<String,String>> getExhibitionByDate(LocalDate startDate);

    //根据名称获取展览
    List<ExhibitionTicket> getExhibitionByName(String name, LocalDate startDate);

    //根据名称获取展览详情
    ExhibitionList getExhibitionDetailByName(String name, LocalDate startDate);

    //提交展览预约
    String submitExhibitionReservation(UserTicketOrder userTicketOrder) throws JsonProcessingException;

}
